* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-image: url("images/background.png");
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ACCOUNT LAYOUT */
.account {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    margin: 60px auto;
}

/* SIDEBAR */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar button {
    padding: 14px;
    border-radius: 30px;
    border: 1px solid #eee;
    background: white;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sidebar button:focus{
    outline: 2px solid #ff5722;
}

.sidebar .active {
    background: #ff5722;
    color: white;
    border: none;
    font-weight: 500;
}

/* PROFILE CONTENT */
.profile-header {
    margin-bottom: 30px;
    align-items: center;
    justify-items: center;
}

.avatar {
    position: relative;
    width: 100px;
}

.avatar img {
    width: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar .edit {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #ff5722;
    color: white;
    padding: 6px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .profile-form { */
    /* max-width: 600px; */
/* } */

.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border-radius: 30px;
    border: 1px solid #ff5722;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(255, 87, 34, 0.5);
}

/* BUTTONS */
.save-btn {
    background: white;
    color: #ff5722;
    padding: 12px 30px;
    border: 2px solid #ff5722;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.save-btn:hover {
    background: #ff5722;
    color: white;
}

/* FEATURES */
.features {
    display: flex;
    justify-content: space-between;
    margin: 80px auto;
    gap: 20px;
}

.feature {
    text-align: center;
    max-width: 250px;
    flex: 1;
}

.feature .icon{
    font-size: 50px;
    background-color: #ff5722;
    border-radius: 70%;
    display: inline-block;
    padding: 15px;
}

/* NEWSLETTER */
.newsletter {
    background: #f9f9f9;
    padding: 80px 20px;
    text-align: center;
}

.newsletter h2 {
    font-size: 32px;
    margin: 15px 0;
}

.newsletter h4 {
    font-size: 14px;
    color: #ff5722;
    margin-bottom: 10px;
}

.newsletter p {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.newsletter span {
    color: #ff5722;
}

.newsletter-box {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.newsletter-box input {
    padding: 14px 20px;
    width: 300px;
    border-radius: 30px 0 0 30px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.newsletter-box button {
    padding: 14px 30px;
    background: #ff5722;
    color: #f9f9f9;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.newsletter-box button:hover {
    background: #e64a19;
}

.newsletter-box button:focus{
    outline: none;
}

/* ===== TABLET MEDIA QUERY (768px and below) ===== */
@media (max-width: 768px) {
    .header {
        padding: 12px 15px;
        
    }

    .container {
        width: 95%;
    }

     .header .right-nav {
        display: none;
    }

    .header nav {
      display: none;
    }

    .hamburger {
      display: flex;
      margin-left: auto;
    }

    .hamburger:focus {
      outline: none;
    }

    .header nav a {
      font-size: 13px;
      margin-left: 10px;
    }

    .logo h1 {
      font-size: 18px;
    }

    .breadcrumb-header-section h1 {
      font-size: 28px;
    }

    .breadcrumb {
      font-size: 12px;
    }

    /* Account Layout - Stack sidebar and content vertically */
    .account {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 40px auto;
    }

    /* Sidebar - Make horizontal on tablets */
    .sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .sidebar button {
        flex: 1;
        min-width: 120px;
        padding: 12px;
        font-size: 12px;
    }

    /* Form - Single column on tablets */
    .form {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Features - Stack in two columns */
    .features {
        flex-wrap: wrap;
        margin: 50px auto;
        gap: 20px;
    }

    .feature {
        flex: 0 1 calc(50% - 10px);
    }

    .feature .icon {
        font-size: 40px;
    }

    /* Newsletter adjustments */
    .newsletter {
        padding: 50px 20px;
    }

    .newsletter h2 {
        font-size: 24px;
    }

    .newsletter-box {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-box input,
    .newsletter-box button {
        width: 100%;
        border-radius: 30px;
        margin-bottom: 10px;
    }

    .newsletter-box button {
        margin-bottom: 0;
    }

    .footer-columns {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-col{
      margin-bottom: 20px;
    }

    .payments img{
      display: inline-block;
      margin: 5px;
    }

    .footer-col h4 {
      font-size: 16px;
    }

    .footer-col ul li {
      font-size: 13px;
    }

    .footer-top-row {
      flex-direction: column;
      gap: 20px;
      align-items: center;
      text-align: center;
    }

    .footer-bottom-row {
      flex-direction: column;
      gap: 15px;
      text-align: center;
    }

    .footer-bottom-row p {
      font-size: 12px;
    }
}

 @media (max-width: 576px) {
        .header {
          padding: 10px 12px;
          gap: 10px;
        }

        .header nav {
          gap: 10px;
          order: 3;
          width: 100%;
          justify-content: center;
        }

        .header nav a {
          font-size: 12px;
          margin-left: 8px;
        }

        .logo {
          gap: 8px;
        }

        .logo img {
          height: 35px;
          width: 35px;
        }

        .logo h1 {
          font-size: 16px;
        }

        .logo small {
          font-size: 10px;
        }

        .right-nav .icons a {
          margin-left: 10px;
          font-size: 16px;
        }

        .breadcrumb-header-section h1 {
          font-size: 22px;
          margin-bottom: 15px;
        }

        .breadcrumb {
          font-size: 11px;
        }

        .footer-top {
             padding: 12px 0;
        }

        .footer-main {
            padding: 25px 0;
        }

        .footer-col h4 {
            font-size: 14px;
            margin-bottom: 10px;
        }

        .footer-col ul li {
            font-size: 12px;
            margin-bottom: 7px;
        }

        .payments img {
            max-width: 40px;
            margin-right: 8px;
        }

        .footer-bottom {
            padding: 8px 0;
        }

        .footer-bottom-row p {
            font-size: 11px;
        }
    }
/* ===== MOBILE MEDIA QUERY (480px and below) ===== */
@media (max-width: 480px) {
    .header {
        padding: 12px 15px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .header nav {
        display: none;
    }

    .container {
        width: 100%;
        padding: 0 15px;
    }

    /* Account section */
    .account {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px auto;
    }

    /* Sidebar - Single column on mobile */
    .sidebar {
        flex-direction: column;
        gap: 10px;
    }

    .sidebar button {
        padding: 12px;
        font-size: 13px;
        width: 100%;
    }

    /* Profile header */
    .profile-header {
        margin-bottom: 20px;
        text-align: center;
    }

    .avatar {
        width: 80px;
        margin: 0 auto;
    }

    .avatar img {
        width: 80px;
    }

    /* Form styling */
    .profile-form {
        max-width: 100%;
    }

    .form {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 15px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group select {
        padding: 10px;
        font-size: 14px;
    }

    .save-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Features - Single column on mobile */
    .features {
        flex-direction: column;
        margin: 30px auto;
        gap: 20px;
    }

    .feature {
        max-width: 100%;
        flex: 1;
    }

    .feature .icon {
        font-size: 35px;
        padding: 12px;
    }

    .feature h4 {
        font-size: 16px;
        margin: 10px 0;
    }

    .feature p {
        font-size: 13px;
    }

    /* Newsletter section */
    .newsletter {
        padding: 30px 15px;
    }

    .newsletter h4 {
        font-size: 12px;
    }

    .newsletter h2 {
        font-size: 18px;
        margin: 10px 0;
    }

    .newsletter p {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .newsletter-box input {
        width: 100%;
        padding: 12px 15px;
        font-size: 13px;
    }

    .newsletter-box button {
        width: 100%;
        padding: 12px 15px;
        font-size: 13px;
    }

    /* Breadcrumb adjustments */
    .breadcrumb-header-section h1 {
        font-size: 24px;
    }

    .breadcrumb {
        flex-wrap: wrap;
    }

    .breadcrumb-item {
        font-size: 12px;
    }
}

/* ===== SMALL MOBILE DEVICES (360px and below) ===== */
@media (max-width: 360px) {
    .header {
        padding: 10px;
    }

    .container {
        padding: 0 10px;
    }

    .account {
        margin: 15px auto;
    }

    .sidebar button {
        padding: 10px;
        font-size: 12px;
    }

    .form-group label {
        font-size: 12px;
    }

    .form-group input,
    .form-group select {
        padding: 8px;
        font-size: 13px;
    }

    .save-btn {
        font-size: 13px;
        padding: 10px 15px;
    }

    .newsletter h2 {
        font-size: 16px;
    }

    .newsletter p {
        font-size: 12px;
    }

    .newsletter-box input,
    .newsletter-box button {
        font-size: 12px;
        padding: 10px;
    }
}